package com.yxw.yx_hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2024-01-18 14:25:42 
 * @description 宿舍报修情况 
 */
@Data
@TableName(value ="yx_room_repair")
@ApiModel(value = "宿舍报修情况" , description="yx_room_repair")
public class YxRoomRepairEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value="repair_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="报修ID")
    private Long repairId;

    @TableField(value="room_id")
    @ApiModelProperty(value="宿舍ID")
    private Long roomId;

    @TableField(value="room_name")
    @ApiModelProperty(value="宿舍名称")
    private String roomName;

    @TableField(value="property_id")
    @ApiModelProperty(value="资产ID")
    private Long propertyId;

    @TableField(value="property_name")
    @ApiModelProperty(value="资产名称")
    private String propertyName;

    @TableField(value="user_name")
    @ApiModelProperty(value="保修人名称")
    private String userName;

    @TableField(value="note")
    @ApiModelProperty(value="报修内容")
    private String note;

    @TableField(value="repair_time")
    @ApiModelProperty(value="报修时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date repairTime;

    @TableField(value="repair_type")
    @ApiModelProperty(value="是否报修房 0：否  1：是")
    private Integer repairType;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="create_id")
    @ApiModelProperty(value="创建人ID")
    private Long createId;

    @TableField(value="create_name")
    @ApiModelProperty(value="创建人")
    private String createName;

    @TableField(value="tenant_id")
    @ApiModelProperty(value="租户")
    private Long tenantId;

    @TableField(value="status")
    @ApiModelProperty(value="处理状态  0：未处理 1：处理中 2：已处理")
    private Integer status;

    @TableField(value="expect_finish_time")
    @ApiModelProperty(value="预计完工日期")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expectFinishTime;

    @TableField(value="finish_time")
    @ApiModelProperty(value="实际完工日期")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    @TableField(value="money")
    @ApiModelProperty(value="维修费用")
    private Double money;

    @TableField(value="record")
    @ApiModelProperty(value="更换零件记录")
    private String record;

}
